

            


            
using System;
using System.Collections.Generic;
using System.Web;
namespace DatabaseComponent
{
     public partial class CoursesScoes
     {

            //Write any additional methods or properties here 
            //Don't modify any genrated classes


         Dictionary<string, string> _CurrentFormatedData = null;

         public Dictionary<string, string> CurrentFormatedData
         {
             get {


                 _CurrentFormatedData = new Dictionary<string, string>();

                 string[] spliter1 = { "|shohdi|" };
                 string[] spliter2 = { ";shohdi;" };


                 string[] strValues = this.ScoData.Split(spliter1,StringSplitOptions.RemoveEmptyEntries);

                 for (int i = 0; i < strValues.Length; i++)
                 {
                     string[] keyvalue = strValues[i].Split(spliter2,StringSplitOptions.RemoveEmptyEntries);
                     if (keyvalue.Length == 0)
                         ;
                     else if (keyvalue.Length == 1)
                         _CurrentFormatedData.Add(keyvalue[0], "");
                     else
                         _CurrentFormatedData.Add(keyvalue[0], keyvalue[1]);

                 }
                 
                 
                 
                 return _CurrentFormatedData; }


             set
             {
                 string strRet = "";
                 foreach (object keyobj in value.Keys)
                 {
                     if (strRet == "")
                         strRet = keyobj.ToString() + ";shohdi;" + value[keyobj.ToString()];
                     else
                         strRet = strRet + "|shohdi|" + keyobj.ToString() + ";shohdi;" + value[keyobj.ToString()];

                 }

                 ScoData = strRet;
             }
            
         }

     }
}
